package cn.edu.whut.system.controller;

import cn.edu.whut.commonapi.core.api.ApiResult;
import cn.edu.whut.system.vo.auth.SysAuthUserLoginReq;
import cn.edu.whut.system.vo.auth.SysAuthUserLoginRes;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static cn.edu.whut.commonapi.core.api.ApiResult.success;


@Tag(name = "系统服务 - 用户验证")
@RequestMapping("auth")
@RestController
@RequiredArgsConstructor
public class SysAuthController {

    @PostMapping("v1/login")
    @Operation(summary = "用户登录")
    public ApiResult<SysAuthUserLoginRes> login(@RequestBody SysAuthUserLoginReq sysAuthUserLoginReq){
        return success();
    }
}
